﻿using Finance.Dal;
using Finance.IBll;
using Finance.IDal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Finance.Bll
{
    public class SaleDataBll : ISaleDataBll
    {
        ISaleDataDal saleDataDal = new SaleDataDal();
        public bool Save(int userId, decimal amount, DateTime? saleDate, string remarks, string createUserName,int id)
        {
           return  saleDataDal.Save(userId, amount, saleDate, remarks, createUserName,id);
        }

        public IEnumerable<Entity.ViewSaleDataEntity> List(string userName, DateTime? beginDate, DateTime? endDate, int? orgId, int pageIndex, int pageSize, out int total)
        {
            return saleDataDal.List(userName, beginDate, endDate, orgId, pageIndex, pageSize, out total);
        }


        public bool Delete(int id)
        {
            return saleDataDal.Delete(id);
        }
    }
}
